package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shisfish
 * @date 2017/12/26
 */
public class Comment implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = -3363886562473103829L;

	private Long id;

    private Long courseId;

    private Long userId;

    private String message;

    private Date createTime;

    /**
     * 评论需要用户的头像
     */
    private User user;

    public Comment() {
    }

    public Comment(Long courseId, Long userId, String message) {
        this.courseId = courseId;
        this.userId = userId;
        this.message = message;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
